#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2017/3/20 14:49
# @Author  : 柳晓飞
# @Site    : 
# @File    : player.py
# @Software: PyCharm

class Player:
    def __init__(self,playerID):
        self.playerID = playerID
        self.cardList = []#玩家所有的牌
        self.lockList = []#碰、杠的牌
        self.isPlaying = False
        self.nickName = ''
        self.pos = 0
        self.rate = {}#翻数
    #重置打牌的状态
    def reSetPStatus(self):
        self.isPlaying = False
        self.cardList = []
        self.lockList = []
        self.rate['mq'] = 0#门清
        self.rate['mg'] = 0#明杠
        self.rate['ag'] = 0#暗杠
        self.rate['zm'] = 0#自摸
